From d53f117de5b9e0054bc12dce633e5070c1bfd3ba Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Sat, 20 Apr 2024 23:40:41 -0700
Subject: feat(user): pinned tooltip for avatar

---
 src/routes/user/[user]/+page.svelte | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

(limited to 'src/routes/user/[user]/+page.svelte')

diff --git a/src/routes/user/[user]/+page.svelte b/src/routes/user/[user]/+page.svelte
index deabb6c6..fb55a6f0 100644
--- a/src/routes/user/[user]/+page.svelte
+++ b/src/routes/user/[user]/+page.svelte
@@ -106,13 +106,15 @@
 
 				<div class="card user-grid-content">
 					<div class="user-grid-avatar">
-						<a href={`https://anilist.co/user/${userData.name}`} target="_blank">
-							<ParallaxImage
-								source={userData.avatar.large}
-								alternativeText=""
-								style="border-radius: 8px; width: 6.5em;"
-							/>
-						</a>
+						<LinkedTooltip content={`${userData.name}`} id="avatar" pin="avatar" relative>
+							<a href={`https://anilist.co/user/${userData.name}`} target="_blank">
+								<ParallaxImage
+									source={userData.avatar.large}
+									alternativeText=""
+									style="border-radius: 8px; width: 6.5em;"
+								/>
+							</a>
+						</LinkedTooltip>
 					</div>
 
 					<div class="user-grid-rest">
-- 
cgit v1.2.3

